package com.fahai.web.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by today on 17/6/09.
 * 用户部门管理
 */
@Controller
@EnableGlobalMethodSecurity(prePostEnabled = true)
@RequestMapping("/chart")
public class ChartController extends BaseController {
    static Logger logger = LoggerFactory.getLogger(ChartController.class);

    /**
     *
     * @return
     */
    @PreAuthorize("hasAnyAuthority('ADMIN','数据分析-0','数据分析-1')")
    @RequestMapping(value = "/list", method = RequestMethod.GET)
    public String enterSysUserList(Model model) {
        model.addAttribute("selectTab","数据分析");
        return "chart_list";
    }



}
